<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  <meta name="description" content="">
  <meta name="author" content="ThemeBucket">
  <link rel="shortcut icon" href="#" type="image/png">

  <title>展示基本信息</title>

  <!--data table-->
  <link rel="stylesheet" th:href="@{js/data-tables/DT_bootstrap.css}" />

    <div th:include="commons :: comhead"></div>
</head>

<body class="sticky-header">

<section>
    <!-- left side start-->
    <div th:replace="commons :: #left"></div>
    <!-- left side end-->
    
    <!-- main content start-->
    <div class="main-content" >

        <!-- header section start-->
        <div th:replace="commons :: #search"></div>
        <!-- header section end-->

        <!-- page heading start-->
        <div class="page-heading">
            <h3>
                员工基本信息
            </h3>
            <ul class="breadcrumb">
                <li>
                    <a href="#">主页</a>
                </li>
                <li class="active">基本信息 </li>
            </ul>
        </div>
        <!-- page heading end-->

        <!--body wrapper start-->
        <div class="wrapper">
             <div class="row">
                <div class="col-sm-12">
                <section class="panel">
                <header class="panel-heading">
                    基本信息
                    <span class="tools pull-right">
                        <a href="javascript:;" class="fa fa-chevron-down"></a>
                        <a href="javascript:;" class="fa fa-times"></a>
                     </span>
                </header>
                <div class="panel-body">
                <div class="adv-table editable-table ">
                <div class="clearfix">
                    <div class="btn-group">
                    </div>
                    <div class="btn-group pull-right">
                        <a th:href="@{/toEditable}"><button class="btn btn-danger btn-sm" type="button" >修改</button></a>
                    </div>
                </div>
                <div class="space15"></div>
                <table class="table table-striped table-hover table-bordered" id="editable-sample">
                <thead>
                <tr>
                    <th>员工编号</th>
                    <th th:text="${userDto.id}">XXX</th>
                </tr>
                </thead>
                <tbody>
                <tr class="">
                    <td>登录昵称</td>
                    <td class="center" th:text="${userDto.username}">XXX</td>
                </tr>
                <tr class="">
                    <td>真实姓名</td>
                    <td class="center" th:text="${userDto.ename}">XXX</td>
                </tr>
                <tr class="">
                    <td>邮箱</td>
                    <td class="center" th:text="${userDto.email}">XXX</td>
                </tr>
                <tr class="">
                    <td>电话</td>
                    <td class="center" th:text="${userDto.tel}">XXX</td>
                </tr>
                <tr class="">
                    <td>地址</td>
                    <td class="center" th:text="${userDto.address}">XXX</td>
                </tr>

                <tr class="">
                    <td>上级编号</td>
                    <td class="center" th:text="${userDto.mgr}">XXX</td>
                </tr>
                <tr class="">
                    <td>入职时间</td>
                    <td class="center" th:text="${#dates.format(userDto.hiredate,'yyyy-MM-dd HH:ss')}">XXX</td>
                </tr>
                <tr class="">
                    <td>工资</td>
                    <td class="center" th:text="${userDto.sal}">XXX</td>
                </tr>
                <tr class="">
                    <td>奖金</td>
                    <td class="center" th:text="${userDto.comm}">XXX</td>
                </tr>
                <tr class="">
                    <td>部门编号</td>
                    <td class="center" th:text="${userDto.deptno}">XXX</td>
                </tr>
                <tr class="">
                    <td>部门名称</td>
                    <td class="center" th:text="${userDto.dname}">XXX</td>
                </tr>
                <tr class="">
                    <td>部门详情</td>
                    <td class="center" th:text="${userDto.mark}">XXX</td>
                </tr>
                </tbody>
                </table>
                </div>
                </div>
                </section>
                </div>
                </div>
        </div>
        <!--body wrapper end-->

        <!--footer section start-->
        <footer>
            2020 &copy; AdminEx by ThemeBucket </a>
        </footer>
        <!--footer section end-->


    </div>
    <!-- main content end-->
</section>

<!-- Placed js at the end of the document so the pages load faster -->
<div th:replace="commons :: js"></div>

<!--data table-->
<script type="text/javascript" th:src="@{js/data-tables/jquery.dataTables.js}"></script>
<script type="text/javascript" th:src="@{js/data-tables/DT_bootstrap.js}"></script>

<!--common scripts for all pages-->

<!--script for editable table-->

<!-- END JAVASCRIPTS -->
<script>
    jQuery(document).ready(function() {
        EditableTable.init();
    });
</script>

</body>
</html>
